package I;

import javax.swing.*;
import java.awt.*;

/**
 * 菜单界面
 */
public class MenuPanel extends JPanel {
    private ImageIcon saveImg = new ImageIcon("picture/buttonSave.jpg");
    private ImageIcon saveImg1 = new ImageIcon("picture/buttonFind.jpg");
    private ImageIcon saveImg2 = new ImageIcon("picture/buttonGet.jpg");
    private ImageIcon saveImg3 = new ImageIcon("picture/buttonModify.jpg");
    private ImageIcon saveImg4 = new ImageIcon("转账");
    private ImageIcon saveImg5 = new ImageIcon("picture/buttonOff.jpg");
    private JButton saveBtn = new JButton(saveImg);
    private JButton saveBtn1 = new JButton(saveImg1);
    private JButton saveBtn2 = new JButton(saveImg2);
    private JButton saveBtn3 = new JButton(saveImg3);
    private JButton saveBtn4 = new JButton("转账");
    private JButton saveBtn5 = new JButton(saveImg5);
    private Font font = new Font("微软雅黑",Font.BOLD,25);
    public MenuPanel(){
        this.setLayout(null);
        saveBtn.setBounds(0,150,140,50);
        saveBtn1.setBounds(0,350,140,50);
        saveBtn2.setBounds(0,550,140,50);
        saveBtn3.setBounds(884,150,140,50);
        saveBtn4.setBounds(884,350,140,50);
        saveBtn4.setFont(font);
        saveBtn5.setBounds(884,550,140,50);
        this.add(saveBtn);
        this.add(saveBtn1);
        this.add(saveBtn2);
        this.add(saveBtn3);
        this.add(saveBtn4);
        this.add(saveBtn5);

        this.setOpaque(false);
    }
}
